package org.micro.rbac.dao.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统用户表
 * </p>
 *
 * @author HongSir
 * @since 2024-06-12
 */
@Getter
@Setter
@TableName("SYS_USER")
@Schema(name = "SysUser", description = "系统用户表")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId("ID")
    private Long id;

    @Schema(description = "登录名")
    @TableField("LOGIN_NAME")
    private String loginName;

    @Schema(description = "密码")
    @TableField("LOGIN_PWD")
    private String loginPwd;

    @Schema(description = "用户名")
    @TableField("USER_NAME")
    private String userName;

    @Schema(description = "超管标识:1-是,0-否")
    @TableField("SUPER_FLAG")
    private Integer superFlag;

    @Schema(description = "创建时间")
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @TableField(value = "UPDATE_TIME", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
}
